package com.be.beadmin.remote;


import com.be.beadmin.common.config.FeignRequestInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "${provider.system-service-name}", url = "${provider.system-host}",
        configuration = FeignRequestInterceptor.class) // 因
public interface SystemService {
    // 服务调用测试
    @PostMapping("/api/commonHello")
    String getSystemHello(@RequestBody String name);
}
